package com.woniu.stafforder.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.common.dto.OrderDto;
import com.woniu.stafforder.dto.OrderMainDto;
import com.woniu.stafforder.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.stafforder.entity.dto.OrderEchartsDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_order】的数据库操作Mapper
* @createDate 2024-05-21 18:37:47
* @Entity com.woniu.stafforder.entity.Order
*/
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    List<OrderEchartsDTO> querySourceInfo();

    /**
     * 多条件查询订单列表
     * @param orderParam
     * @return
     */
    IPage<OrderDto> queryOrderList(Page<OrderDto> orderPage, @Param("orderParam") OrderDto orderParam);

    OrderMainDto queryOrderByOrderNum(Long orderNum);
}




